package service.impl;

import java.util.List;

import dao.OyxVipUser_IntegralDao;
import dao.impl.OyxVipUser_IntegralDaoImpl;
import entity.OyxVipLevelShow;
import entity.User_Inf;
import service.OyxVipUsermessageService;

public class OyxVipUsermessageServiceImpl implements OyxVipUsermessageService {
    
	OyxVipUser_IntegralDao vuid = new OyxVipUser_IntegralDaoImpl();
	
	@Override
	public User_Inf getUser_InfMessage(Integer userId) {
		//通过用户id查询返回用户对象信息
		User_Inf user_InfMessage = vuid.getUser_InfMessage(userId);
		return user_InfMessage;
	}

	@Override
	public Integer getVipUser_InfSum() {
		Integer vipUser_InfSum = vuid.getVipUser_InfSum();
		return vipUser_InfSum;
	}
  //查询会员等级对应的会员人数
	@Override
	public Integer getVipUser_InfSumLevel(Integer level) {
		Integer vipUser_InfSumLevel = vuid.getVipUser_InfSumLevel(level);
		return vipUser_InfSumLevel;
	}
	//根据会员等级判断返回的会员展示数据
	@Override
	public List<OyxVipLevelShow> getVipUserLevelShow(Integer vipLevel,Integer pageNo, Integer paeSize) {
		List<OyxVipLevelShow> vipUserLevelShow = vuid.getVipUserLevelShow(vipLevel,pageNo,paeSize);
		return vipUserLevelShow;
	}

}
